EasyPQCTest.RotateTest
Creates an initial key before rotating it 20 times.
public async Task RotateTest()
{
var rotation = new EasyPQC.Rotation();
Console.WriteLine("Initial Key");
var initkey = await rotation.CreateInitialKey("I need more power.");
Console.WriteLine("Initial Salt: " + initkey.Item1);
Console.WriteLine("Initial Key: " + initkey.Item2);
var rot = new EasyPQC.Rotation();
//Multirotation test
int rotationCount = 20;
int round = 0;
string currentKey = initkey.Item2;
while (rotationCount >= round)
{
var rotatedKey = await rot.RotateKey(currentKey.ToSecureData(), round, initkey.Item2);
Console.WriteLine($"Rotated Key for round {round}: " + rotatedKey);
round++;
}
}